import axios from "axios";
import{message} from "antd";

const authRequest = axios.create({
    baseURL:"/auth"
})

authRequest.interceptors.response.use((response)=>{
    console.log(1);
    
    message.error(response.data.message);
    return response.data
})
export default authRequest;